const routes = [
    //一级路由
    {
        path: '/renwu',
        name: 'renwu',
        component: () => import('../views/renwu.vue'),
    },
    {
        path: '/xinzeng',
        name: 'xinzeng',
        component: () => import('../views/xinzeng.vue'),
    },
    {
        path: '/',
        redirect: '/renwu',
    },
    //地址访问错误时跳转到此地址
    {
        path: '/:error(.*)', // * 表示匹配任何路由(所有路由)
        component: () => import('../views/lujingcuowu.vue')
    }
]
export default routes;